ScriptParsedEvent

data class ScriptParsedEvent(scriptId: ScriptId, url: String, startLine: Int, startColumn: Int, endLine: Int, endColumn: Int, executionContextId: ExecutionContextId, hash: String, executionContextAuxData: JsonElement?, isLiveEdit: Boolean?, sourceMapURL: String?, hasSourceURL: Boolean?, isModule: Boolean?, length: Int?, stackTrace: StackTrace?, codeOffset: Int?, scriptLanguage: ScriptLanguage?, debugSymbols: DebugSymbols?, embedderName: String?) : Event

Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.

Constructors

ScriptParsedEvent
Link copied to clipboard
fun ScriptParsedEvent(scriptId: ScriptId, url: String, startLine: Int, startColumn: Int, endLine: Int, endColumn: Int, executionContextId: ExecutionContextId, hash: String, executionContextAuxData: JsonElement? = null, isLiveEdit: Boolean? = null, sourceMapURL: String? = null, hasSourceURL: Boolean? = null, isModule: Boolean? = null, length: Int? = null, stackTrace: StackTrace? = null, codeOffset: Int? = null, scriptLanguage: ScriptLanguage? = null, debugSymbols: DebugSymbols? = null, embedderName: String? = null)

Functions

domain
Link copied to clipboard
open override fun domain(): String
Returns domain name for which event was generated.
eventName
Link copied to clipboard
open override fun eventName(): String
Returns event name as described in protocol.

Properties

codeOffset
Link copied to clipboard
val codeOffset: Int? = null
If the scriptLanguage is WebAssembly, the code section offset in the module.
debugSymbols
Link copied to clipboard
val debugSymbols: DebugSymbols? = null
If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
embedderName
Link copied to clipboard
val embedderName: String? = null
The name the embedder supplied for this script.
endColumn
Link copied to clipboard
val endColumn: Int
Length of the last line of the script.
endLine
Link copied to clipboard
val endLine: Int
Last line of the script.
executionContextAuxData
Link copied to clipboard
val executionContextAuxData: JsonElement? = null
Embedder-specific auxiliary data.
executionContextId
Link copied to clipboard
val executionContextId: ExecutionContextId
Specifies script creation context.
hash
Link copied to clipboard
val hash: String
Content hash of the script.
hasSourceURL
Link copied to clipboard
val hasSourceURL: Boolean? = null
True, if this script has sourceURL.
isLiveEdit
Link copied to clipboard
val isLiveEdit: Boolean? = null
True, if this script is generated as a result of the live edit operation.
isModule
Link copied to clipboard
val isModule: Boolean? = null
True, if this script is ES6 module.
length
Link copied to clipboard
val length: Int? = null
This script length.
scriptId
Link copied to clipboard
val scriptId: ScriptId
Identifier of the script parsed.
scriptLanguage
Link copied to clipboard
val scriptLanguage: ScriptLanguage? = null
The language of the script.
sourceMapURL
Link copied to clipboard
val sourceMapURL: String? = null
URL of source map associated with script (if any).
stackTrace
Link copied to clipboard
val stackTrace: StackTrace? = null
JavaScript top stack frame of where the script parsed event was triggered if available.
startColumn
Link copied to clipboard
val startColumn: Int
Column offset of the script within the resource with given URL.
startLine
Link copied to clipboard
val startLine: Int
Line offset of the script within the resource with given URL (for script tags).
url
Link copied to clipboard
val url: String
URL or name of the script parsed (if any).

Sources

jvm source
Link copied to clipboard